package com.ev.scm.vo;


import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Description 计数主辅已使用的数量
 * Company Xin Soft
 * @author Liu Yu
 * Date 2021/01/12
 **/
@EqualsAndHashCode(callSuper = false)
public class CountBean implements Serializable {
    /** 序列化Id */
    private static final long serialVersionUID = -1L;
    /** 源单Id */
    private Long sourceId;
    /** 主单位已使用数量 */
    private BigDecimal mainCount;
    /** 辅单位已使用数量 */
    private BigDecimal subCount;
    /** 辅单位已使用数量 */
    private BigDecimal subCountOther;

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public BigDecimal getSubCountOther() {
        return subCountOther == null?BigDecimal.ZERO:subCountOther;
    }

    public void setSubCountOther(BigDecimal subCountOther) {
        this.subCountOther = subCountOther;
    }

    public BigDecimal getMainCount() {
        return mainCount == null?BigDecimal.ZERO:mainCount;
    }

    public void setMainCount(BigDecimal mainCount) {
        this.mainCount = mainCount;
    }

    public BigDecimal getSubCount() {
        return subCount == null?BigDecimal.ZERO:subCount;
    }

    public void setSubCount(BigDecimal subCount) {
        this.subCount = subCount;
    }
}
